package com.ruoyi.project.check.service.Impl;

import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.project.check.domian.Hosresultenety;
import com.ruoyi.project.check.mapper.HosResultenetyMapper;
import com.ruoyi.project.check.service.IHosResultenetyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class IHosResultenetyServiceImpl implements IHosResultenetyService {
    @Autowired
    private HosResultenetyMapper hosResultenetyMapper;
    @Override
    public List<Hosresultenety> selectHosResultenetylist(Hosresultenety hosresultenety) {
        return hosResultenetyMapper.selectHosResultenetylist(hosresultenety);
    }

    @Override
    public int insertHosResultenety(Hosresultenety hosresultenety) {
        hosresultenety.setCreateTime(DateUtils.getNowDate());
        return hosResultenetyMapper.insertHosResultenety(hosresultenety);
    }

    @Override
    public Hosresultenety selectHosResultenetyById(Long checkId) {
        return hosResultenetyMapper.selectHosResultenetyById(checkId);
    }

    @Override
    public int updateHosResultenety(Hosresultenety hosresultenety) {
        return hosResultenetyMapper.updateHosResultenety(hosresultenety);
    }

    @Override
    public int deleteHosCheckById(Long checkId) {
        return hosResultenetyMapper.deleteHosCheckById(checkId);
    }
}
